package com.qwz.example;
/**
* @Description: 项目经理处理
* @Package com.qwz.example.ProjectManager
* @author Qiuwuzhi
* @date 2019/12/27 15:03
* @version V1.0
*/
public class ProjectManager extends Handler{

    @Override
    public String handleFeeRequest(String user, double fee) {
        String result = null;
        //只能500以内
        if (fee<500){
            if ("lx".equals(user)){
                result = "项目经理同意"+user+"聚餐费用"+fee+"元的请求";
            }else{
                result = "项目经理不同意"+user+"聚餐费用"+fee+"元的请求";
            }
        }else{
            if (this.successor!=null){
                return this.successor.handleFeeRequest(user,fee);
            }
        }

        return result;
    }
}
